/*
 * ChangeMap.h
 *
 *  Created on: 11/02/2011
 *      Author: Nenem
 */

#ifndef CHANGEMAP_H_
#define CHANGEMAP_H_

#include "PositionTrigger.h"
#include "Direction.h"
#include <string>
using namespace std;

class ChangeMap: public PositionTrigger {
	EnumDirection dir;
	Position *travelerPos;
	int objID;
	string newMap;
	int newPos;
public:
	ChangeMap(EnumDirection dir, int objID, string newMap, int newPos);
	ChangeMap(string dir, int objID, string newMap, int newPos);
	virtual ~ChangeMap();
	void update(TriggerList *list, Scenery *scenery);
	bool test(TriggerList *list);
	bool steped(Body *body, Position *position, Direction *direction, StepTrigger *stepTrigger);
	void setObjectPos(Position *position);
	void active(Scenery *scenery);

};

#endif /* CHANGEMAP_H_ */
